Repository navigation
[2.0] Fixes #34662: stop bot bulk PUTs blanking fields the source doesn't send - #34671
Conversation
…t send With overrideMetadata=true, an empty description or displayName and an omitted certification overwrote stored values. tableConstraints had no bot guard at all, so any bot PUT without constraints removed them, override or not. Override now replaces a stored value only when the source supplies one; constraints on dropped columns are still cleaned up. (cherry picked from commit 9a6181c)
(cherry picked from commit 7c75ef6)
2.0 predates #32793, so CreateTableRequest cannot carry a certification and a bot PUT already always preserves a stored one.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🔴 High risk · Bot bulk PUTs alter stored-value preservation for descriptions and table constraints. Fixes bot bulk PUTs from blanking fields the source doesn't send. With OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #34662
Backport of #34663 to
2.0. Bot bulk PUTs now keep stored values the source doesn't send. WithoverrideMetadata=true, an emptydescription/displayNameno longer blanks the stored value.tableConstraintsgets a bot guard, so a bot PUT without constraints (override on or off) no longer deletes them. Constraints on columns the source dropped are still cleaned up.Differences from the main PR:
EntityRepositoryconflict was resolved to 2.0's side.test_overrideDoesNotRemoveCertificationWhenNoneSuppliedis dropped, becauseCreateTableRequestcan't carry a certification on 2.0.Type of change:
Tests:
BulkOverrideMetadataIT: the description, displayName and constraint cases from Fixes #34662: stop bot bulk PUTs blanking fields the source doesn't send #34663 (the certification case is omitted, see above).openmetadata-servicebuilds andopenmetadata-integration-teststest-compiles on 2.0. The ITs were run against main in Fixes #34662: stop bot bulk PUTs blanking fields the source doesn't send #34663, not yet against 2.0.Checklist:
Fixes #<issue-number>above.🤖 Generated with Claude Code